<?php include_once('ClsSebent/config.php');
if($Bid!="")
{
$act_conn=OpenConnection();
$q="select * from buyers where Bid='".$Bid."'";
$rs=mysql_query($q);
$row=mysql_fetch_array($rs);
		if($row["Bid"]!="")
		{?>
		<script type="text/javascript">
		document.frm.Bid.value="Not Available";
		</script>
		<?php 
		}
		else
		{?>
		<script type="text/javascript">
		alert("This Buyer Id is Available.");
		</script>
		<?php
		}
		CloseConnection($act_conn);
}		
;?>
<script type="text/javascript">
window.close('chkBavail.php');
</script>